import 'package:flutter/material.dart';

import 'custom_app_bar.dart';

///渐变色Appbar
class CustomGradientAppBar extends CustomAppBar {
  CustomGradientAppBar(
    Widget title, {
    LinearGradient? gradient,
    Widget? leading,
    List<Widget>? actions,
    bool automaticallyImplyLeading = true,
    double? titleSpacing,
  }) : super(
          title,
          flexibleSpace: Container(
            decoration: BoxDecoration(
              gradient: gradient,
            ),
          ),
          leading: leading,
          actions: actions,
          automaticallyImplyLeading: automaticallyImplyLeading,
          titleSpacing: titleSpacing,
        );
}
